package com.team24.hotel.controller.common;


import com.team24.hotel.domain.Location;
//import com.team24.hotel.service.TestMapService;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;
import java.util.Map;

@Controller
public class TestMapController {
    @RequestMapping("/testMap")
    public String toMap(@RequestParam Map <String, Object> map, HttpServletRequest httpServletRequest){
        httpServletRequest.setAttribute("hotel_name",map.get("hotel_name"));
        return "testMap";
    }

//    TestMapService testMapService;
//    public Location getLocation(@RequestParam Location<String Object> , @RequestParam String hotel_ly, HttpSession session) {
//            session.setAttribute("hotel_lx",map.get("hotel_lx"));
//            testMapService.location()
//            return ;
//
//    }


}
